package v1

import (
	"ginblog/errmsg"
	"ginblog/oss"
	"github.com/gin-gonic/gin"
	"net/http"
)

func UploadAli(c *gin.Context) {
	file, _ := c.FormFile("file")
	code := oss.UploadAli(file)
	c.JSON(http.StatusOK, gin.H{
		"status": code,
		"msg":    errmsg.GetErrMsg(code),
	})
}
